package com.wxproject.demo.Entity.AO;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;

/**
 * @author HCJ
 * @date 2021/4/15 16:46
 * @description 创建文章 参数校验类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ArticleCreateAO {
    //文章标题
    @NotEmpty(message = "标题不能为空！")
    private String articleTitle;
    //文章内容
    @NotEmpty(message = "文章内容不能为空！")
    private String articleContent;
    //分类ID
//    @NotEmpty(message = "分类ID不能为空！")
    private String typeId;
    @NotEmpty(message = "关键词不能为空！")
    private String keyWords;
    //文章目录
    private String tableOfContent;
    //文章缩略图url
    private String thumBnail;
}
